/*
 * Name: Joon Ho Cho
 * Date: 10/24/2008
 * Course: 15-437
 */
package scheduler.model;

import org.mybeans.dao.DAOException;

import scheduler.databean.Bookmark;

public interface BookmarkDao {
    public Bookmark[] getAll() throws DAOException;
    public Bookmark[] getBookmarksForUser(String userName) throws DAOException;
    public Bookmark create() throws DAOException;
    public Bookmark create(String userName, 
                           String bookmarkName, 
                           String url, 
                           String comment) throws DAOException;
    public Bookmark lookup(int id) throws DAOException;
    public void update(int id, String comment) throws DAOException;
    public void delete(int id) throws DAOException;
}
